package com.ruoyi.chat.mapper;

import com.ruoyi.chat.domain.SysUserFriends;
import com.ruoyi.system.api.domain.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
public interface SysUserFriendsMapper {
    void addFriend(@Param("userId") Long userId, @Param("friendId") Long friendId);
    void removeFriend(@Param("userId") Long userId, @Param("friendId") Long friendId);

//    List<Long> selectFriendsIdByUserId(Long userId);
    List<SysUser> selectFriendsByUserId(Long userId);
}
